.dashboard-page {
  background: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  color: #000814;
  margin: 0;
  padding: 40px;
}

.top-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
  margin-top: 40px;
  gap: 24px;
}

.card-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.allocation-title {
  font-weight: 600;
  color: #0026ff;
  font-size: 16px;
  font-family: 'DotGothic16';
}

.allocation-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.bar {
  width: 14px;
  height: 50px;
  border-radius: 4px;
}

.bar.undeployed {
  background: #cbd4e6;
}

.bar.deployed {
  background: linear-gradient(to top, #00ff88, #0026FF);
}

.card-right {
  text-align: right;
}

.wallet-label {
  font-size: 25px;
  font-weight: 600;
  color: #0a0909;
  font-family: 'Space Grotesk'
}

.wallet-balance {
  font-size:90px;
  font-weight: 700;
  color: #0033cc;
  font-family: 'Space Grotesk'
}

.dashboard-row {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.secondary-card {
  flex: 1;
  border-radius: 16px;
  padding: 20px;
  color: white;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
}




/* Card Colours */
.card-transactions {
  background: #0026ff; /* Cobalt Blue */
}

.card-calendar {
  background: #F4D800; /* Yellow */
  color: #000;
}

.card-messages {
  background: #000000; /* Black */
}

/* Titles */
.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Inner Content Styling */
.transactions-list {
  list-style: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.4;
}

.transaction-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0;
}

.transaction-row span {
  flex: 1;
}

.transaction-row span:first-child {
  text-align: left;
  font-weight: 500;
}

.transaction-row span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}



.calendar-placeholder,
.message-placeholder {
  font-size: 14px;
}

.section-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.section-header hr {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 1rem;
}

.trading-section {
  display: flex;
  flex-wrap: nowrap;      /* prevent wrapping */
  gap: 2rem;
  margin-top: 2rem;
  align-items: flex-start;
}

.open-positions { flex: 2; }
.sidebar        { flex: 1; }

.watchlist h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.open-positions { width: auto !important; }
.watchlist      { width: auto !important; margin-left: 0 !important; }

.watchlist ul {
  list-style: none;
  padding: 0;
}

.watchlist li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.view-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
}

.view-btn:hover {
  background-color: #333;
}

.open-positions h2,
.watchlist h3 {
  margin-bottom: 0.25rem;
}

.open-positions hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 0 1rem 0;
  width: 100%; /* adjust to match yellow box width */
}


.open-positions,
.watchlist {
  padding-top: 0.25rem;
}

.watchlist hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 0 0 1rem 0;
}



.acquisitions-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.acquisition-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-end; /* key to make the VV shape baseline-aligned */
  gap: 4rem;
  margin-top: 1rem;
}

.acquisitions-card {
  border: 2px solid #0026ff;
  border-radius: 20px;
  padding: 32px;
  margin-top: 2rem;
  min-height: 400px;
   box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}

.acquisition-item {
  text-align: center;
  animation: slidePulse 3s ease-in-out infinite;
}

@keyframes slidePulse {
  0%, 100% {
    transform: translateY(-40px); /* "top" */
  }
  50% {
    transform: translateY(40px); /* "middle" */
  }
}

.acquisition-item:nth-child(1) {
  animation-delay: 0s;
}
.acquisition-item:nth-child(2) {
  animation-delay: 1s;
}
.acquisition-item:nth-child(3) {
  animation-delay: 2s;
}



.acquisition-item img {
   height: 240px !important;
  width: auto !important;
  animation: jitter 0.6s infinite alternate;
}

.acquisition-item p {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0033cc;
  font-family: 'DotGothic16'
}

@keyframes jitter {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(1px, -1px) rotate(-0.5deg); }
  50%  { transform: translate(-1px, 1px) rotate(0.5deg); }
  75%  { transform: translate(1px, 1px) rotate(0deg); }
  100% { transform: translate(0, 0) rotate(-0.5deg); }
}



/* V shape layout */
.acquisition-item.top {
  transform: translateY(-50px);
}

.acquisition-item.middle {
  transform: translateY(40px);
}

/* Status text */
.acquisition-item .status {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #0026ff;
  font-family: 'DotGothic16';
}


.bottom-section {
  display: flex;
  gap: 24px;
  margin-top: 50px;

}


.bottom-card {
  background: #111111;
  border-radius: 16px;
  padding: 20px;
  flex: 1;
  border: 1px solid #ddd;
  font-family: 'Space Grotesk', sans-serif;
}

.bottom-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  font-family: 'Space Grotesk';
}

.notifications-card ul {
  list-style: none;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #f1e9e9;
}


.notes-card {
  background: #111; /* Black card background */
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  height: 180px; /* or less if needed */
  box-sizing: border-box;
}

.notes-area {
  flex: 1;
  background: transparent;
  color: white;
  border: none;
  outline: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  resize: none;
  overflow-y: auto;
  white-space: pre-wrap;
}


@media (max-width: 768px) {
  .bottom-sections {
    flex-direction: column;
  }
}

.system-card,
.notes-card {
  background: #111;
  border-radius: 12px;
  padding: 16px;
  flex: 1; /* Equal width */
  height: 300px; /* Set to the same height */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

    .site-nav {
      position: absolute;
      top: 1.5rem;
      right: 1rem;
      z-index: 1000;
    }
    .hamburger {
      font-size: 2rem;
      cursor: pointer;
      user-select: none;
    }
    .nav-menu {
      display: none;
      position: absolute;
      top: 2.5rem;
      right: 0;
      background: none;
      padding: 1rem;
      border-radius: 0.5rem;
      font-family: 'DotGothic16';
    }
    .nav-menu a {
      display: block;
      margin: 0.5rem 0;
      text-decoration: none;
      color: #0026ff;
      font-size: 1rem;
    }
    .nav-open .nav-menu {
      display: block;
    }

/* dim the screen behind */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
}

/* the white “card” that holds every modal */
.modal-dialog {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
   color: #0033cc;
  font-family: 'Space Grotesk';
}

/* unify your headings and text */
.modal-dialog h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #0033cc;
  font-family: 'Space Grotesk';
}

/* style the buttons */
.modal-dialog .actions button {
  margin: 0 0.25rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}
.modal-dialog .actions .cancel {
  background: rgb(216, 25, 25);
  color: white;
}
.modal-dialog .actions .confirm {
  background: #00cc33;
  color: white;
}

/* your “Confirmed” screen */
.confirm-modal {
  text-align: center;
}
.confirm-modal .done {
  background: #00cc33;
  color: white;
   color: #0033cc;
  font-family: 'Space Grotesk';
}

.acquire-modal {
  background: #fff;
  border-radius: 8px;
  width: 400px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  color: #0033cc;
}
.acquire-modal h3 {
  margin-top: 0;
  text-align: center;
}

/* TRADE BUTTONS */
.dashboard-page .trade-buttons {
  border: 1px solid #0047FF;
  background-color: #fff;
  color: #0033cc;
  padding: 0.6rem 1rem;
  margin: 0.2rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  border-radius: 8px;
}

.trade-buttons:hover {
  transform: scale(1.05);
  background-color: #e6ca5a;
}

#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.toast {
  background: #00cc33;
  color: white;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-family: 'space grotesk';
  animation: fadein 0.3s, fadeout 0.3s 2.7s forwards;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeout {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

.pending-list {
  list-style: none;
  padding-left: 0;
}

.pending-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.cancel-pending {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 16px;
}

.cancel-pending:hover {
  color: red;
}


/* Base layout improvements for mobile */
@media (max-width: 768px) {
  body.dashboard-page {
    padding: 1rem;
    overflow-x: hidden;
  }

  .dashboard-card,
  .dashboard-row,
  .trading-section,
  .acquisitions-card,
  .bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100% !important;
    margin-bottom: 2rem;
  }

  .dashboard-card .card-left,
  .dashboard-card .card-right {
    width: 90% !important;
    text-align: center;
  }

  .dashboard-row {
    gap: 1.5rem;
  }

  .dashboard-row .card {
    width: 90% !important;
    max-width: 600px;
    text-align: center;
  }

  .trading-section {
    flex-direction: column;
    align-items: center;
  }

  .open-positions,
  .sidebar {
    width: 90% !important;
    max-width: 600px;
  }

  .acquisition-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .acquisition-item {
    width: 90% !important;
    text-align: center;
  }

  .bottom-section {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .bottom-card,
  .notes-card {
    width: 90% !important;
    max-width: 600px;
  }

  .notes-area {
    width: 100%;
    padding: 1rem;
  }

/* Smaller wallet font on mobile */
.wallet-balance {
  font-size: 1.5rem !important;
}

/* Center and shrink acquisitions box on mobile */
.acquisitions-card {
  display: flex;
  justify-content: center;
  width: 90%;
}

.acquisitions-section {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.acquisition-gallery {
  flex-direction: column;
  align-items: center;
}

.acquisition-item img {
  max-width: 90%;
  height: auto;
}

}
